package com.javashow.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "DATA_MODEL_FIELDS")
public class DataModelFields {
	private int id;
	
	private String modelName;
	
	private String dataConvert;
	
	private String dateFormat;
	
	private String defaultValue;
	
	private String mapping;
	
	private String name;
	
	private String persist;
	
	private String serialize;
	
	private String sortDir;
	
	private String sortType;
	
	private String type;
	
	private String userNull;

	@Id  
    @GeneratedValue(generator="increment")  
    @GenericGenerator(name="increment", strategy = "increment")  
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	@Column(name = "MODEL_NAME")
	public String getModelName() {
		return modelName;
	}

	public void setModelName(String modelName) {
		this.modelName = modelName;
	}
	@Column(name = "DATA_CONVERT")
	public String getDataConvert() {
		return dataConvert;
	}

	public void setDataConvert(String dataConvert) {
		this.dataConvert = dataConvert;
	}
	@Column(name = "DATE_FORMAT")
	public String getDateFormat() {
		return dateFormat;
	}

	public void setDateFormat(String dateFormat) {
		this.dateFormat = dateFormat;
	}
	@Column(name = "DEFAULT_VALUE")
	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public String getMapping() {
		return mapping;
	}

	public void setMapping(String mapping) {
		this.mapping = mapping;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPersist() {
		return persist;
	}

	public void setPersist(String persist) {
		this.persist = persist;
	}

	public String getSerialize() {
		return serialize;
	}

	public void setSerialize(String serialize) {
		this.serialize = serialize;
	}

	@Column(name = "SORT_DIR")
	public String getSortDir() {
		return sortDir;
	}

	public void setSortDir(String sortDir) {
		this.sortDir = sortDir;
	}

	@Column(name = "SORT_TYPE")
	public String getSortType() {
		return sortType;
	}

	public void setSortType(String sortType) {
		this.sortType = sortType;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "USE_NULL")
	public String getUserNull() {
		return userNull;
	}

	public void setUserNull(String userNull) {
		this.userNull = userNull;
	}
}
